enum class NRA12_PARSE_STATE {
	STATE0_UNSYNC = 0,
	STATE1_GOT_START1,
	STATE2_GOT_START2,
	STATE2_GOT_0C,
	STATE2_GOT_07,
	STATE3_GOT_Index,
	STATE4_GOT_Res,
	STATE5_GOT_DIST_H,
	STATE6_GOT_DIST_L,
	STATE7_GOT_UNUSE1,
	STATE8_GOT_UNUSE2,
	STATE9_GOT_UNUSE3,
	STATE10_GOT_UNUSE4,
	STATE11_GOT_END1,
	STATE12_GOT_END2
};

int nra12_parse(char c, char *parserbuf, unsigned *parserbuf_index, NRA12_PARSE_STATE *state, float *dist);
